Change on level
Default changing of maps is by push button. But it is possible to change maps by level.
This mean, diferent maps can be asignet to diferent voltage levels on maps input - in_mapswitch
Enable change on level
- Set
mapopts
|= 1. (enable bit 0) - Configura
maplut
(see below)
Maplut
maplut
is an array. The array size is total number of maps. The position in array is the map number. The value in array GDIN value, that will change to this map.
Example
maplut
= -10,-1,0,1,2,3,0,0,0,0
Gdin value | Map |
---|---|
-1 | Map1 |
0 | Map0 |
1 | Map1 |
2 | Map2 |
3 | Map3 |
info
Value -10 is because it is not a valid value for GDIN and it is skipped. If the first value is 0, the map0 is activated for GDIN value 0.